<div id="header">
	<div class="header-logo fl"><a href="/">Momo Ger</a></div>
	<div class="header-info fr">
		<div class="header-status">
		Hello,
		<?php if (!$this->user) { ?>
		<strong>Guest</strong>, Welcome to momoger.com!
		<span><a href="/login">Login</a></span>
		<span><a href="/regist">Regist</a></span>
		<?php } else { ?>
		<span><strong><?php echo $this->user->userNick; ?></strong>!</span>
		<span><a href="/user">My Momoger</a></span>
		<span><a href="/logout">Log out</a></span>
		<?php } ?>
		</div>
		<div class="header-nav">
			<?php if($this->user && 1 == $this->user->userType) { ?>
			<a class="header-nav-link fr<?php echo $this->nav == 'admin'? ' current-nav':''; ?>" href="/admin">Manage</a>
			<?php } ?>
			<a class="header-nav-link fr<?php echo $this->nav == 'discuss'? ' current-nav':''; ?>" href="/discuss">Discuss</a>
			<a class="header-nav-link fr<?php echo $this->nav == 'photo'? ' current-nav':''; ?>" href="/photo">Photos</a>
			<a class="header-nav-link fr<?php echo $this->nav == 'article'? ' current-nav':''; ?>" href="/article">Articles</a>
			<a class="header-nav-link fr<?php echo $this->nav == 'home'? ' current-nav':''; ?>" href="/">Home</a>
			<div class="cr"></div>
		</div>
	</div>
	<div class="ca"></div>
</div>